﻿using System;
using System.Net;

namespace SCG.SolarVengeanceEngine.StarShips
{
    //TechShips
    public class TechShip : StarShip
    {
        //constructor
        public TechShip(SVGame game, Player owner, StarSystem origin)
            : base(game, owner, 3, 0, origin)
        {
        }

        //Ship name
        public override string Name
        {
            get
            {
                return "TechShip";
            }
        }

        //description
        public override string Description
        {
            get
            {
                return "The presence of TechShips slowly increases the Tech Multiple of the Star Lord that owns them.  A Star Lord's Tech Multiple influences how quickly Resources are produced at all of its StarSystems.";
            }
        }

        //ship type
        public override StarShipType ShipType
        {
            get
            {
                return StarShipType.TechShip;
            }
        }

        //Increase TM!
        protected internal override void CommonPreProcessing()
        {
            double mult = 1.0d / Owner.TechMultiple;
            double add = 0.5d * 0.001d * mult;
            Owner.TechMultiple += add;
        }
    }
}
